package com.mallify.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mallify.common.model.system.SystemCity;
import com.mallify.common.request.SystemCityRequest;
import com.mallify.common.request.SystemCitySearchRequest;
import com.mallify.common.vo.SystemCityTreeVo;

import java.util.List;

/**
 * SystemCityService 接口
 * +----------------------------------------------------------------------
 * | HANSON [ HANSON赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Licensed HANSON并不是自由软件，未经许可不能去掉HANSON相关版权
 * +----------------------------------------------------------------------
 * | Author: HANSON Team <hanson0622@126.com>
 * +----------------------------------------------------------------------
 */
public interface SystemCityService extends IService<SystemCity> {

    /**
     * 分页城市列表
     * @param request 搜索条件
     */
    Object getList(SystemCitySearchRequest request);

    /**
     * 修改城市
     * @param id 城市id
     * @param request 修改参数
     */
    Boolean update(Integer id, SystemCityRequest request);

    /**
     * 修改状态
     * @param id 城市id
     * @param status 状态
     */
    Boolean updateStatus(Integer id, Boolean status);

    /**
     * 获取城市树
     */
    List<SystemCityTreeVo> getListTree();
}
